#!/usr/bin/python
# encoding=utf-8
import time
import tools
import requests

while True:
    r = requests.post('http://39.104.14.106:8080/zdn/transfer',
                      data={"fromMobile": "13400411396", "toMobile": "15200496210"}
                      )
    res_json = r.json()
    print(time.time(), r.text)
    if res_json['success']:
        tools.send_email('Zdn Transfer is Ok!!!')
        break
    time.sleep(90)
